var data = null
function a(cb){
    setTimeout(function(){
        data = 'hello world'
        cb()
    },1000)
}
function b(){console.log('data');}
a(b)
